package com.peas.platform.module.icims.base.approve.controller.vo;

import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.common.core.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.*;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("审批模版条件")
public class ApproveConditionVo extends BaseVo {

    // 【审批流程表】
    @Comment(value = "审批模版ID")
    @ApiModelProperty(value = "审批模版ID")
    private Long approveId;

    @Comment(value = "审批条件业务", enumType = "ApproveBusiness")
    @ApiModelProperty(value = "审批条件业务", notes = "枚举取值:ApproveBusiness")
    @NotBlank(message = "审批条件业务不能为空")
    @Size(max = 20, message = "审批条件业务不能超过20个字符")
    private String approveConditionBusiness;

    @Comment(value = "审批条件字段", enumType = "ApproveBusinessField")
    @ApiModelProperty(value = "审批条件字段", notes = "枚举取值:ApproveBusinessField")
    @Size(max = 100, message = "审批条件字段不能超过100个字符")
    private String approveConditionField;

    @Comment(value = "审批条件描述")
    @ApiModelProperty(value = "审批条件描述")
    @Size(max = 100, message = "审批条件描述不能超过100个字符")
    private String approveConditionLabel;

    @Comment(value = "审批条件比较符")
    @ApiModelProperty(value = "审批条件比较符")
    @Size(max = 20, message = "审批条件比较符不能超过20个字符")
    private String approveConditionOper;

    // 多个值用半角逗号
    @Comment(value = "审批条件值")
    @ApiModelProperty(value = "审批条件值")
    @Size(max = 500, message = "审批条件值不能超过500个字符")
    private String approveConditionValues;

}
